package lion.json.handlers;

import java.io.IOException;
import java.io.Writer;
import java.util.Date;

import lion.dev.text.Formater;
import lion.json.IJsonHandler;

/**
 * @author lion
 * @mail hl_0074@sina.com
 * @date 2011-9-27
 */
public class DateHandler implements IJsonHandler {

	@Override
	public void handle(Object o, Writer writer) throws IOException {

		writer.write("\"" + Formater.formatDate("yyyy-MM-dd HH:mm:ss", (Date) o) + "\"");
	}
}
